<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>图像上传和处理示例</title>
<style>
body {
	font-family:"Microsoft Yahei","Helvetica Neue",Helvetica,Arial,sans-serif;
	font-size:16px;
	padding:5px;
}
.form{
	padding: 15px;
	font-size: 16px;
}

.form .text {
	padding: 3px;
	margin:2px 10px;
	width: 240px;
	height: 24px;
	line-height: 28px;
	border: 1px solid #D4D4D4;
}
.form select {
	padding: 5px;
	margin:2px 10px;
	width: 150px;
	height: 30px;
	line-height: 30px;
	border: 1px solid #D4D4D4;
}

.form .btn{
	margin:6px;
	padding: 6px;
	width: 120px;

	font-size: 16px;
	border: 1px solid #D4D4D4;
	cursor: pointer;
	background:#eee;
}
.form .file{
	margin:6px;
	padding: 6px;
	width: 220px;

	font-size: 16px;
	border: 1px solid #D4D4D4;
	cursor: pointer;
	background:#eee;
}

a{
	color: #868686;
	cursor: pointer;
}
a:hover{
	text-decoration: underline;
}
h2{
	color: #4288ce;
	font-weight: 400;
	padding: 6px 0;
	margin: 6px 0 0;
	font-size: 28px;
	border-bottom: 1px solid #eee;
}
div{
	margin:8px;
}
.info{
	padding: 12px 0;
	border-bottom: 1px solid #eee;
}

.copyright{
	margin-top: 24px;
	padding: 12px 0;
  border-top: 1px solid #eee;
}

</style>
<script src="//ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.3.min.js"></script>
</head>
<body>
 <div align="center"><h1 class="title">1使用微信扫码支付方式</h1><img alt="微信扫码支付" src="{$erweima}" style="width:300px;height:300px;"/>
{$ids}
  </div>
<script>
        function get_pay_status() {
            url = "{:url('index/paystatus')}";
            pay_success_url = "{:url('index/paysuccess')}";
            var id="{$ids}";
            postData = {
                'id' : id,
            };
            $.post(url, postData,function(result){
                //todo
                if(result.status==1) {
                    self.location=pay_success_url;
                }
            }, 'JSON');
        }
        window.setInterval("get_pay_status()", 2000);
    </script>
</body>
</html>